import request from '@/utils/request'
// 证书分类管理
export function certificate_add(data) {
  return request({
    url: '/company/certificate/category',
    method: 'post',
    data: data
  })
}
export function certificateList(query) {
  return request({
    url: '/company/certificate/category/list',
    method: 'get',
    params: query
  })
}
export function certificate_update(data) {
    return request({
      url: '/company/certificate/category',
      method: 'put',
      data: data
    })
  }
  export function certificate_delete(deptId) {
    return request({
      url: '/company/certificate/category/' + deptId,
      method: 'delete'
    })
  }
// 证书列表管理
export function certificate__add(data) {
    return request({
      url: '/company/certificate',
      method: 'post',
      data: data
    })
  }
  export function certificate__List(query) {
    return request({
      url: '/company/certificate/list',
      method: 'get',
      params: query
    })
  }
  export function certificate__update(data) {
      return request({
        url: '/company/certificate',
        method: 'put',
        data: data
      })
    }
    export function certificate__delete(deptId) {
      return request({
        url: '/company/certificate/' + deptId,
        method: 'delete'
      })
    }